package com.pap.rbac.orgation.auto.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.pap.base.mapper.PapBaseMapper;
import com.pap.rbac.agent.orgation.dto.OrganizationTreeNodeVO;
import com.pap.rbac.orgation.auto.entity.Organization;;

public interface OrganizationMapper extends PapBaseMapper<Organization> {
	int deleteByPrimaryKey(String id);

	int selectCountByMap(Map<Object, Object> map);

	List<Organization> selectListByMap(Map<Object, Object> map);

	Organization selectByPrimaryKeyAndTableName(@Param("id") String id,
			@Param("dynamicTableName") String dynamicTableName);

	int deleteByPrimaryKeyAndTableName(@Param("id") String id, @Param("dynamicTableName") String dynamicTableName);

	int insert(Organization record);

	int insertSelective(Organization record);

	Organization selectByPrimaryKey(String id);

	int updateByPrimaryKeySelective(Organization record);

	int updateByPrimaryKey(Organization record);
	
	// add alexgaoyh

	List<OrganizationTreeNodeVO> organizationTreeJson(@Param("clientLicenseId") String clientLicenseId,
			@Param("globalParentId") String globalParentId);
}